package com.ruoyi.project.infobaseproject.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.infobaseproject.mapper.InfoBaseProjectTargetStagingMapper;
import com.ruoyi.project.infobaseproject.domain.InfoBaseProjectTargetStaging;
import com.ruoyi.project.infobaseproject.service.IInfoBaseProjectTargetStagingService;

/**
 * 项目信息及资金调整暂存Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-19
 */
@Service
public class InfoBaseProjectTargetStagingServiceImpl implements IInfoBaseProjectTargetStagingService 
{
    @Autowired
    private InfoBaseProjectTargetStagingMapper infoBaseProjectTargetStagingMapper;

    /**
     * 查询项目信息及资金调整暂存
     * 
     * @param id 项目信息及资金调整暂存主键
     * @return 项目信息及资金调整暂存
     */
    @Override
    public InfoBaseProjectTargetStaging selectInfoBaseProjectTargetStagingById(Long id)
    {
        return infoBaseProjectTargetStagingMapper.selectInfoBaseProjectTargetStagingById(id);
    }

    /**
     * 查询项目信息及资金调整暂存列表
     * 
     * @param infoBaseProjectTargetStaging 项目信息及资金调整暂存
     * @return 项目信息及资金调整暂存
     */
    @Override
    public List<InfoBaseProjectTargetStaging> selectInfoBaseProjectTargetStagingList(InfoBaseProjectTargetStaging infoBaseProjectTargetStaging)
    {
        return infoBaseProjectTargetStagingMapper.selectInfoBaseProjectTargetStagingList(infoBaseProjectTargetStaging);
    }

    /**
     * 新增项目信息及资金调整暂存
     * 
     * @param infoBaseProjectTargetStaging 项目信息及资金调整暂存
     * @return 结果
     */
    @Override
    public int insertInfoBaseProjectTargetStaging(InfoBaseProjectTargetStaging infoBaseProjectTargetStaging)
    {
        return infoBaseProjectTargetStagingMapper.insertInfoBaseProjectTargetStaging(infoBaseProjectTargetStaging);
    }

    /**
     * 修改项目信息及资金调整暂存
     * 
     * @param infoBaseProjectTargetStaging 项目信息及资金调整暂存
     * @return 结果
     */
    @Override
    public int updateInfoBaseProjectTargetStaging(InfoBaseProjectTargetStaging infoBaseProjectTargetStaging)
    {
        return infoBaseProjectTargetStagingMapper.updateInfoBaseProjectTargetStaging(infoBaseProjectTargetStaging);
    }

    /**
     * 批量删除项目信息及资金调整暂存
     * 
     * @param ids 需要删除的项目信息及资金调整暂存主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseProjectTargetStagingByIds(Long[] ids)
    {
        return infoBaseProjectTargetStagingMapper.deleteInfoBaseProjectTargetStagingByIds(ids);
    }

    /**
     * 删除项目信息及资金调整暂存信息
     * 
     * @param id 项目信息及资金调整暂存主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseProjectTargetStagingById(Long id)
    {
        return infoBaseProjectTargetStagingMapper.deleteInfoBaseProjectTargetStagingById(id);
    }

    @Override
    public InfoBaseProjectTargetStaging selectInfoBaseProjectTargetStagingByProjectId(Long baseProjectStagingId) {
        return infoBaseProjectTargetStagingMapper.selectInfoBaseProjectTargetStagingByProjectId(baseProjectStagingId);
    }
}
